<?php

namespace app\index\controller;

use think\Controller;
use think\Request;
use app\index\model\Project as ProjectModel;

class Project extends BaseController
{
    /**
     * 自有项目
     */
    public function lists()
    {
        $size = $this->request->get('size');
        $projects = ProjectModel::getProjects($size);
        $this->successes([
            'projects' => $projects->items(),
            'total' => $projects->total()
        ]);
    }
}
